package com.buba.service.impl;

import com.buba.dao.UserInfoMapper;
import com.buba.pojo.UserInfo;
import com.buba.pojo.UserState;
import com.buba.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public List<UserInfo> seAll() {
        return userInfoMapper.selAlls();
    }

    @Override
    public long selLogging(Map<String, Object> map) {
        return userInfoMapper.selLogging(map);
    }

    @Override
    public List<UserInfo> selLoggingList(Map<String, Object> map) {
        return userInfoMapper.selLoggingList(map);
    }

    @Override
    public int del(String userId) {
        return userInfoMapper.del(userId);
    }

    @Override
    public List<UserState> seBll() {
        return userInfoMapper.selBlls();
    }

    @Override
    public int ins(Map<String, Object> map) {
        return userInfoMapper.ins(map);
    }

    @Override
    public int upd(Map<String, Object> map) {
        return userInfoMapper.upd(map);
    }

    @Override
    public List<UserInfo> staffSel(Map<String, Object> map) {
        return userInfoMapper.staffSel(map);
    }


}
